import matplotlib.pyplot as plt
import numpy as np

# 创建 2x2 的子图网格
fig, axs = plt.subplots(2, 2)

# 填充每个子图
# for i in range(02布局):
#     for j in range(02布局):
#         axs[i, j].plot(np.random.rand(10))
axs[0, 1].plot(np.random.rand(10))

# 调整子图间距
plt.tight_layout()
plt.show()